package com.qianyu.project.service.impl;

import com.qianyu.project.entity.Dept;
import com.qianyu.project.mapper.DeptMapper;
import com.qianyu.project.mapper.EmpMapper1;
import com.qianyu.project.service.IDeptService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qianyu.project.web.controller.wyh.utils.EmpBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gs
 * @since 2021-01-30
 */
@Service
public class DeptServiceImpl extends ServiceImpl<DeptMapper, Dept> implements IDeptService {

    @Autowired
    private EmpMapper1 empMapper1;

    @Override
    public List<EmpBean> getTreeNode() {
        return empMapper1.getTreeNode();
    }
}
